#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int n, sum = 0;
	while (scanf("%d", &n))
	{
		if (n <= 0)
			break;
		if (n % 2)
			sum += n;
	}

	printf("%d", sum);
	return 0;
}